<div id='project_<%= project.id %>' class="project">
  <div class='head' >
    <div class='title' onmouseout="$('project_<%= project.id %>_tools').hide();" onmouseover="$('project_<%= project.id %>_tools').show();">
      <div>◆<b id="project_<%= project.id %>_name"><%= project.name %></b></div>
      <div id='project_<%= project.id %>_tools' class='tools' style='display:none;'>
        <%= link_to_remote "修改",
              :update => "new_or_edit_project_#{project.id}",
              :url => edit_project_url(project),
              :method => :get,
              :complete => "Effect.BlindDown('edit_project_#{project.id}')",
              :html => {
                :class => :base
              }
         %>
        <%= link_to_remote "删除",
              :url => project_url(project),
              :method => :delete,
              :confirm => '确认要删除该项目吗？',
              :html => {
                :class => :base
              }
         %>
        <%= link_to_remote "▶创建阶段",
              :update => "new_or_edit_project_#{project.id}_stage",
              :url => new_stage_url(:project_id => project.id),
              :method => :get,
              :complete => "Effect.BlindDown('new_project_#{project.id}_stage')",
              :html => {
                :class => :base_i
              }
         %>
        <%= link_to "▶打印待发", print_one_project_url(:id => project.id,:pay_status => :paying), :target => :_blank, :class => :base_i %>
        <%= link_to "▶打印暂缓", print_one_project_url(:id => project.id,:pay_status => :paused), :target => :_blank, :class => :base_i %>
      </div>
    </div>
    <div id="project_info_<%= project.id %>" class='overviews'>
      <%= render :file => 'projects/show_in_index.html', :locals => { :project => project } %>
    </div>
  </div>
  <div id="new_or_edit_project_<%= project.id %>" class="new_or_edit_project"></div>
  <div id="new_or_edit_project_<%= project.id %>_stage"></div>
  <div id="project_<%= project.id %>_stages" class='body'>
    <%= render :file => 'stages/_index.html', :locals => { :project => project} %>
  </div>
</div>
<script type="text/javascript" charset="utf-8">
  setValue('project_<%= project.id %>_paying',<%= only_payings? %>);
  setValue('project_<%= project.id %>_paused',<%= only_pauseds? %>);
  setValue('project_<%= project.id %>_payed',<%= only_payeds? %>);
</script>